package com.linxi.rpccompensation.config.runner;

import com.linxi.rpccompensation.config.job.BaseJob;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @description:
 * @author：lx
 * @date: 2021/09/30 下午 4:29
 * @Copyright： lx
 */
@Component
public class TestJobRunner extends BaseJob {

	private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	@Override
	public void runner() {
		System.out.println("执行定时任务：" + sdf.format(new Date()));
	}
}
